<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <!-- Bootstrap -->
    <link rel="stylesheet" href="<?php echo base_url();?>public/bootstrap/css/docs.css" />
    <link rel="stylesheet" href="<?php echo base_url();?>public/bootstrap/css/bootstrap.min.css" />
    <script src="<?php echo base_url();?>public/js/jquery.js"></script>
    <script src="<?php echo base_url();?>public/bootstrap/js/bootstrap.min.js"></script>
    
    <link rel="stylesheet" href="<?php echo base_url();?>public/css/myStyle.css" />
</head>
<body>
    <script type='text/javascript'>
        $(document).ready(function() {
            $('#myModal').modal();
            $('#myModal').on('hidden.bs.modal', function () {
                window.location='<?php echo base_url();?>';
            })
        });
    </script>
    <!-- Modal -->
    <form class="form-horizontal" role="form" method="POST">
    
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">Lấy lại mật khẩu</h4>
                    </div>
                    <div class="modal-body">
                    
                        <div class="form-group">
                            <label for="email" class="col-sm-3 control-label">Nhập email</label>
                            <div class="col-sm-9">
                                <input required="true" type="email" class="form-control" id="email" placeholder="Email" name="email" />
                            </div>
                        </div>
                        
                        <?php if($this->session->flashdata('message')) { ?>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="col-sm-9" style="color: red;">
                                <?php echo $this->session->flashdata('message')?>
                            </div>
                        </div>
                        <?php } ?>
                        
                    </div>
                    <div class="modal-footer">
                        <span style="float: left; margin: 10px;"><a href="<?php echo base_url();?>login" >Đăng nhập</a></span> 
                        <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
                        <button type="submit" class="btn btn-primary">Gửi mật khẩu về email</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div><!-- /.modal -->
    </form>

</body>
</html>